{{#if getContainerDataTask.isRunning}}

  {{pendulum-ellipsis-animation}}

{{/if}}

{{#if getContainerDataTask.last.isError}}

  {{empty-state heading="An error occurred getting this dataset's compliance policy"}}

{{else}}

  {{#if complianceInfo.fromUpstream}}

    {{datasets/containers/upstream-dataset upstreamUrn=complianceInfo.datasetUrn}}

  {{else}}

    {{dataset-compliance
      datasetName=datasetName
      schemaless=schemaless
      platform=platform
      complianceInfo=complianceInfo
      complianceSuggestion=complianceSuggestion
      isNewComplianceInfo=isNewComplianceInfo
      schemaFieldNamesMappedToDataTypes=schemaFieldNamesMappedToDataTypes
      complianceDataTypes=complianceDataTypes
      notifyOnComplianceSuggestionFeedback=(action "onSuggestionsComplianceFeedback")
      notifyOnChangeSetSuggestions=(action "onSuggestionsChanged")
      notifyOnChangeSetRequiresReview=(action "onCompliancePolicyChangeSetDrift")
      onSave=(action "savePrivacyCompliancePolicy")
      onReset=(action "resetPrivacyCompliancePolicy")
    }}

  {{/if}}

{{/if}}
